.class public Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;
.super Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;
.source "DateSortedDownloadAdapter.java"


# instance fields
.field private mDelegate:Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/database/Cursor;Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadItem$DownloadSelectListener;)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "cursor"    # Landroid/database/Cursor;
    .param p3, "selectionListener"    # Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadItem$DownloadSelectListener;

    .prologue
    .line 37
    const-string v0, "last_modified_timestamp"

    invoke-interface {p2, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    invoke-direct {p0, p1, p2, v0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;-><init>(Landroid/content/Context;Landroid/database/Cursor;I)V

    .line 38
    new-instance v0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;

    invoke-direct {v0, p1, p2, p3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;-><init>(Landroid/content/Context;Landroid/database/Cursor;Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadItem$DownloadSelectListener;)V

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;->mDelegate:Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;

    .line 39
    return-void
.end method


# virtual methods
.method public getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 9
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I
    .param p3, "isLastChild"    # Z
    .param p4, "convertView"    # Landroid/view/View;
    .param p5, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 45
    if-eqz p4, :cond_6

    instance-of v0, p4, Landroid/widget/RelativeLayout;

    if-nez v0, :cond_c

    .line 46
    :cond_6
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;->mDelegate:Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;

    invoke-virtual {v0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;->newView()Landroid/view/View;

    move-result-object p4

    .line 48
    :cond_c
    const-string v0, ""

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MyDataSetObserver onChanged getChildView="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 50
    invoke-virtual {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;->moveCursorToChildPosition(II)Z

    move-result v0

    if-nez v0, :cond_2b

    .line 55
    :goto_2a
    return-object p4

    .line 54
    :cond_2b
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;->mDelegate:Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;

    invoke-virtual {v0, p4}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DownloadAdapter;->bindView(Landroid/view/View;)V

    goto :goto_2a
.end method
